#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "core/coreservice.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

//private slots:
//    void on_pushButton_clicked();

private slots:
    void on_actionAddDocument_triggered();

private slots:
    void on_actionSave_triggered();

private slots:
    void on_actionOpen_triggered();

public slots:
    void on_addDocument(const QString& title,const QString& content);
    void refreshDocList();
    void refreshDocument(TA::Document* document);

private slots:
    void on_tbWords_itemSelectionChanged();

private slots:
    void on_tbDocuments_itemSelectionChanged();

private slots:
    void on_actionClose_triggered();

private:
    TA::CoreService* coreService;
    TA::Project* project;
    TA::Document* doucment;
    Ui::MainWindow *ui;

};

#endif // MAINWINDOW_H
